package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallPromoterDouyinTrack;
import com.appkubes.mall.core.po.MallPromoterDouyinTrackExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallPromoterDouyinTrackMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="countByExample")
    long countByExample(MallPromoterDouyinTrackExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallPromoterDouyinTrackExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_promoter_douyin_track",
        "where douyin_track_key = #{douyinTrackKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String douyinTrackKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_promoter_douyin_track (douyin_track_key, app_key, ",
        "video_title, count_good, ",
        "count_review, count_forward, ",
        "`status`, create_time, ",
        "update_time, version)",
        "values (#{douyinTrackKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{videoTitle,jdbcType=VARCHAR}, #{countGood,jdbcType=INTEGER}, ",
        "#{countReview,jdbcType=INTEGER}, #{countForward,jdbcType=INTEGER}, ",
        "#{status,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=INTEGER})"
    })
    int insert(MallPromoterDouyinTrack record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="insertSelective")
    int insertSelective(MallPromoterDouyinTrack record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="douyin_track_key", property="douyinTrackKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="video_title", property="videoTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="count_good", property="countGood", jdbcType=JdbcType.INTEGER),
        @Result(column="count_review", property="countReview", jdbcType=JdbcType.INTEGER),
        @Result(column="count_forward", property="countForward", jdbcType=JdbcType.INTEGER),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallPromoterDouyinTrack> selectByExampleWithRowbounds(MallPromoterDouyinTrackExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="douyin_track_key", property="douyinTrackKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="video_title", property="videoTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="count_good", property="countGood", jdbcType=JdbcType.INTEGER),
        @Result(column="count_review", property="countReview", jdbcType=JdbcType.INTEGER),
        @Result(column="count_forward", property="countForward", jdbcType=JdbcType.INTEGER),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallPromoterDouyinTrack> selectByExample(MallPromoterDouyinTrackExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "douyin_track_key, app_key, video_title, count_good, count_review, count_forward, ",
        "`status`, create_time, update_time, version",
        "from mall_promoter_douyin_track",
        "where douyin_track_key = #{douyinTrackKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="douyin_track_key", property="douyinTrackKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="video_title", property="videoTitle", jdbcType=JdbcType.VARCHAR),
        @Result(column="count_good", property="countGood", jdbcType=JdbcType.INTEGER),
        @Result(column="count_review", property="countReview", jdbcType=JdbcType.INTEGER),
        @Result(column="count_forward", property="countForward", jdbcType=JdbcType.INTEGER),
        @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    MallPromoterDouyinTrack selectByPrimaryKey(String douyinTrackKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallPromoterDouyinTrack record, @Param("example") MallPromoterDouyinTrackExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallPromoterDouyinTrack record, @Param("example") MallPromoterDouyinTrackExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallPromoterDouyinTrackSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallPromoterDouyinTrack record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_promoter_douyin_track
     *
     * @mbg.generated
     */
    @Update({
        "update mall_promoter_douyin_track",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "video_title = #{videoTitle,jdbcType=VARCHAR},",
          "count_good = #{countGood,jdbcType=INTEGER},",
          "count_review = #{countReview,jdbcType=INTEGER},",
          "count_forward = #{countForward,jdbcType=INTEGER},",
          "`status` = #{status,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "version = #{version,jdbcType=INTEGER}",
        "where douyin_track_key = #{douyinTrackKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallPromoterDouyinTrack record);
}